package com.jeomo.mem.starter.service;

import com.jeomo.base.starter.service.IBaseService;
import com.jeomo.mem.starter.entity.MemberDiscountRule;

import java.util.List;
import java.util.Map;

/**
 * 会员折扣服务接口
 *
 * @author:Jackpot
 * @create 2020-09-24 14:59
 * @description:
 */
public interface IMemberDiscountRuleService extends IBaseService<MemberDiscountRule> {

    /**
     *分页查询积分规则
     * @param pageNumber    开始页数
     * @param pageSize  每页大小
     * @param searchParams  查询参数(可为null)
     * @return
     */
//    List<MemberDiscountRule> getRulesByPage(long pageNumber, long pageSize,Map<String, Object> searchParams);

    /**
     * 修改规则状态
     * @param ruleCode
     * @param status 开启/关闭
     * @return
     */
    int updateRuleStatus(String ruleCode,boolean status);

}
